package cn.jf.modules.system.service;

import cn.jf.modules.system.entity.SysAnnouncement;
import cn.jf.modules.system.model.AnnouncementModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 系统通告表
 * @Author: jeecg-boot
 * @Date:  2019-01-02
 * @Version: V1.0
 */
public interface ISysAnnouncementService extends IService<SysAnnouncement> {

	public void saveAnnouncement(SysAnnouncement sysAnnouncement);

	public boolean upDateAnnouncement(SysAnnouncement sysAnnouncement);

	public void saveSysAnnouncement(String title, String msgContent);

	public Page<SysAnnouncement> querySysCementPageByUserId(Page<SysAnnouncement> page, String userId, String msgCategory);

	/**
	 * 根据条件查询
	 * @return
	 */
	List<SysAnnouncement> querySysCementListByPar(AnnouncementModel sysAnnouncement);

	Page<SysAnnouncement> querySysCementPage(Page<SysAnnouncement> page);
	List<SysAnnouncement> getSysAnnouncementByLike(String keyWord);
	void insert(SysAnnouncement sysAnnouncement);
}
